<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title>商品信息管理 - 物流管理系统</title>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<style media="all" type="text/css">@import "../../style/all.css";</style>
		<script type="text/javascript" src="../../script/jquery-1.3.2.min.js"></script>
	<script type="text/javascript" src="../../script/jquery-ui-personalized-1.6rc6.min.js"></script>
	<script type="text/javascript" src="../../script/date.js"></script>
	<script type="text/javascript" src="../../script/common.js"></script>
	<script type="text/javascript">
   $(function(){   
	   $("#btn1").click(function(){
		   window.location.href="../proapi/addpro2?tex1="+$("#tex1").attr("value")+"&tex2="+$("#tex2").attr("value")+"&tex3="+$("#tex3").attr("value")+"&tex4="+$("#tex4").attr("value")+"&tex5="+$("#tex5").attr("value")+"&tex6="+$("#tex6").attr("value")+"&tex8="+$("#tex8").attr("value")+"&tex10="+$("#tex10").attr("value")+"&tex11="+$("#tex11").attr("value")+"&sel1="+$("#sel option:selected").text()+"&sel2="+$("#sel2 option:selected").text();
	   });
   })
    </script>
</head>
<body style="background: none">
	<div class="top-bar">
		<h1>新建商品</h1>
		<div class="breadcrumbs">
			<div class="button-bar">
				<input type="button" name="Submit" value="帮助" class="button"/>
				<input type="button" name="Submit" id="btn1" value="保存" class="button"/>
				<input type="button" name="Submit" onclick="history.go(-1)" value="返回" class="button"/>
			</div>
			<a href="../../index.html" target="_top">首页</a> /
			<a href="../index.html" target="_top">配送中心</a> /
            <a href="index.html" target="_top">商品管理</a>
		</div>
	</div>
	<div class="select-bar">
		<table class="select-table">
			<tr>
				<th>商品代码</th>
				<td><input type="text" id="tex1" class="text" value="" /></td>
				<th>商品名称</th>
				<td><input type="text" id="tex2" class="text" value=""/></td>
			</tr>
			<tr>
				<th>商品分类</th>
				<td><select id="sel1" style="width:80px;">
				<c:forEach items="${listfirst }" var="listfirst">
				<option value="${listfirst.firstClass}">${listfirst.firstClass}</option>
				</c:forEach>
			        </select>
			        <select id="sel2" style="width:80px;">
				<c:forEach items="${listsecond }" var="listsecond">
				<option value="${listsecond.secondClass}">${listsecond.secondClass}</option>
				</c:forEach>
					</select>
				</td>
				<th>计量单位</th>
				<td><input type="text" id="tex3" class="text" value=""/></td>
			</tr>
			<tr>
				<th>单价</th>
				<td><input type="text" id="tex4" class="text" value=""/></td>
				<th>商品折扣</th>
				<td><input type="text" id="tex5" class="text" value=""/></td>
			</tr>
			<tr>
				<th>库存</th>
				<td><input type="text" id="tex6" class="text" value=""/></td>
				<th>型号</th>
				<td><input type="text" id="tex7" class="text" value=""/></td>
			</tr>
		</table><br/>
		<table class="select-table">
			<tr>
				<th>供应商</th>
				<td><input type="text" id="tex8" class="text" value=""/></td>
				<th>厂商</th>
				<td><input type="text" id="tex9" class="text" value=""/></td>
			</tr>
			<tr>
				<th>商品信息</th>
				<td><input type="text" id="tex10" class="text" value=""/></td>
				<th> </th>
				<td> </td>
			</tr>
		</table><br/>
		<table class="select-table">
			<tr>
				<th>备注</th>
				<td><textarea id="tex11" rows="5" cols="30"></textarea></td>
				<th> </th>
				<td> </td>
			</tr>
		</table>
	</div>
</body>
</html>
